<?php


namespace app\api\controller;


use app\middleware\ApiCheckAuth;
use app\service\Token;

class AuthApi extends BaseApi
{
    protected $member;
    protected $middleware = [
        ApiCheckAuth::class
    ];

    /**
     * 初始化
     * @throws \app\service\exception\ApiException
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     * @throws \think\db\exception\ModelNotFoundException
     */
    public function initialize()
    {
        parent::initialize(); // TODO: Change the autogenerated stub

        $this->member = Token::checkMemberToken();
    }
}